import plugin from '../../lib/plugins/plugin.js'
import cfg from '../../lib/config/config.js'
/*
戳一戳会发送文字同时也会发送对应的语音！
但是发送语音需要ffmpeg
如果你不会装ffmpeg
Linux系统可以用脚本解决
bash <(curl -sL https://gitee.com/haanxuan/yzai-pd/raw/master/Xf.sh)
Windows系统可以看教程
https://hanxuan.cc/blogs/ffmpeg.html
*/
const _path = process.cwd();
/*
首发群453694434
本插件免费公开外传！
禁止任何交易行为
如果你是交易获得
请及时退款并举报发布者！
*/

export class example extends plugin {
  constructor () {
    super({
      /** 功能名称 */
      name: '星穹铁道语音戳一戳',
      /** 功能描述 */
      dsc: '简单开发示例',
      /** https://oicqjs.github.io/oicq/#events */
      event: 'notice.group.poke',
      /** 优先级，数字越小等级越高 */
      priority: -114514,
      rule: [
        {
          /** 命令正则匹配 */
          reg: '.*',
          /** 执行方法 */
          fnc: 'chuochuo'
        }
      ]
    })
  }
 
  

  async chuochuo (e) {
    

    if(e.target_id == cfg.qq){
      
    /*这个是一个随机数*/
    let num = Math.ceil(Math.random() * 48);
    /*
    前面的数字就是对应的触发数字，随机到什么数字就触发对应的发送内容
    音频怎么获取可以看B站教程
    【超简单之一键下载原神角色语音,你还在录屏提取音频吗?】 https://www.bilibili.com/video/BV1a34y1f7f8/?share_source=copy_web&vd_source=637815ec2b4a6ad7b556be6113eea381
    如果被删除了就自己找找吧，挺简单的
    复制粘贴就可以自己写想要的角色戳一戳了
    */

    //因为官网没文字，游戏我是不玩的，风是必跟的，文字就不写了，你们自己填吧
 if(num == 1){
  e.reply(`白露1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/09/14/bb4e1cebc62ae04a7de0716085f881bf_2295257863671916052.mp3")
  e.reply(msg)
}
if(num == 2){
  e.reply(`嫌药苦？那我给你裹层糖粉呗，你不喜欢啊？去去去，吐出来还我，我还不惜的给你。`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/09/14/79f2a6c5cc6b6f11224569ce1848cdc2_3391640130883034498.mp3")
  e.reply(msg)
}
if(num == 3){
  e.reply(`景元1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/09/14/290a6acdbc502fe6dee4326583ed4694_4444936930929628822.mp3")
  e.reply(msg)
}
if(num == 4){
  e.reply(`景元2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2023/01/13/8b49972129ad5b1d2e0139a00c2c5bfe_7592514784882013712.mp3")
  e.reply(msg)
}
if(num == 5){
  e.reply(`彦卿1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/09/14/6afd4549c58c42de919e84e351b77537_3346784615130851577.mp3")
  e.reply(msg)
}
if(num == 6){
  e.reply(`彦卿2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/09/14/decee8fb1d81415531efa337167d8fb1_8086713333928115162.mp3")
  e.reply(msg)
}
if(num == 7){
  e.reply(`停云1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/09/14/4bd5d2dfaf9d9adc319408efb490559e_152623317380918798.mp3")
  e.reply(msg)
}
if(num == 8){
  e.reply(`停云2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/09/14/757f225405cf041e3b2b2087fafee27c_639147695786256250.mp3")
  e.reply(msg)
}
if(num == 9){
  e.reply(`素裳1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/09/14/d6bf39e629e1e27443a2137bad4c8247_5024585668856547770.mp3")
  e.reply(msg)
}
if(num == 10){
  e.reply(`素裳2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/09/14/13eb304c4d5bc41ecc88f0b0c9397bbc_6905722003203070817.mp3")
  e.reply(msg)
}
if(num == 11){
  e.reply(`青雀1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/09/14/7ae6933b193df570a91ca54c7f80988e_2584752911475124389.mp3")
  e.reply(msg)
}
if(num == 12){
  e.reply(`青雀2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/09/14/dbd1a13841061806d4875e8055896b2b_5354969736794339480.mp3")
  e.reply(msg)
}
if(num == 13){
  e.reply(`卡芙卡1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/9a7632ade1bb65495c2155b7a702eb39_5339164749440772476.mp3")
  e.reply(msg)
}
if(num == 14){
  e.reply(`卡芙卡2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/290ff480625d3428c251eef78cfc8d57_4216197950531340140.mp3")
  e.reply(msg)
}
if(num == 15){
  e.reply(`银狼1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/a907d9fe692f9ca4eda5cc5aa7565beb_5556444846198514061.mp3")
  e.reply(msg)
}
if(num == 16){
  e.reply(`银狼2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/c4d92187b02e616c24100de561f81188_2172217707668637966.mp3")
  e.reply(msg)
}
if(num == 17){
  e.reply(`姬子1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/8b736ba2d592773d34a54c8689176646_7302764791197842928.mp3")
  e.reply(msg)
}
if(num == 18){
  e.reply(`姬子2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/a3acd472dc476c69db53c95f3754d558_9010388824691255004.mp3")
  e.reply(msg)
}
if(num == 19){
  e.reply(`瓦尔特1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/8084afc9bb24f8d8d4f44ccd1e4868e3_9197290952662137558.mp3")
  e.reply(msg)
}
if(num == 20){
  e.reply(`瓦尔特2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/60039f0b4ebd78a59bccc923063fc531_7629996972220018670.mp3")
  e.reply(msg)
}
if(num == 21){
  e.reply(`丹恒1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/f465612bbafbd493c00a12305e933faf_818739031323648173.mp3")
  e.reply(msg)
}
if(num == 22){
  e.reply(`丹恒2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/f9c5ac1d4397349a677bc8e2e0378deb_849387765099747396.mp3")
  e.reply(msg)
}
if(num == 23){
  e.reply(`三月七1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/1d93d9d8d7df163b19b0c6ceb9b232a8_4984432271587058687.mp3")
  e.reply(msg)
}
if(num == 24){
  e.reply(`三月七2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/aa0e6b089eb1bc3b38b3e07f0fdd2603_8796583660124143842.mp3")
  e.reply(msg)
}
if(num == 25){
  e.reply(`阿兰1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/79db837c920dc274707c81c370c1294b_4250443869686153093.mp3")
  e.reply(msg)
}
if(num == 26){
  e.reply(`阿兰2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/9d388c4269c18a9295428d0ac055393f_8983267521688618604.mp3")
  e.reply(msg)
}
if(num == 27){
  e.reply(`艾丝妲1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/5f3b6ab5eb008576e62eb679bf3d2a75_4178540983336083697.mp3")
  e.reply(msg)
}
if(num == 28){
  e.reply(`艾丝妲2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/4fe5b2e62e7dfdd72d7b1b9fc362c703_3237160522510045983.mp3")
  e.reply(msg)
}
if(num == 29){
  e.reply(`侯小菲1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/7de7165b1ce624e8014bf945d53a2da9_1270319010808556163.mp3")
  e.reply(msg)
}
if(num == 30){
  e.reply(`侯小菲2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/d4112cda187b20ff9edd610544db1d0b_5380279060443444180.mp3")
  e.reply(msg)
}
if(num == 31){
  e.reply(`杰帕德1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/961359c5ce5e7cac08365676ed4ca63f_6704344131667277260.mp3")
  e.reply(msg)
}
if(num == 32){
  e.reply(`杰帕德2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/123c93a38ef7bbefd69d0125ea8ebc81_6814920811515028290.mp3")
  e.reply(msg)
}
if(num == 33){
  e.reply(`布洛妮娅1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/d9a71d6b89ba681823bec18581d15b12_7572792028671434925.mp3")
  e.reply(msg)
}
if(num == 34){
  e.reply(`布洛妮娅2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/c0cd48e534e03f1ea33092eb2ea70b6a_8044748539241385128.mp3")
  e.reply(msg)
}
if(num == 35){
  e.reply(`希儿1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/e13280f37b90620083d78a05c027b53a_5737430191271642495.mp3")
  e.reply(msg)
}
if(num == 36){
  e.reply(`希儿2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/fae2731be26f25ad52022294c883ae0d_7179670446629147916.mp3")
  e.reply(msg)
}
if(num == 37){
  e.reply(`克拉拉1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/a3827476e206550c7cdea019d6708b16_7866249640129264519.mp3")
  e.reply(msg)
}
if(num == 38){
  e.reply(`克拉拉2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/726eea355f2ddd371cca820cd2c1e316_948509657206409769.mp3")
  e.reply(msg)
}
if(num == 39){
  e.reply(`桑博1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/f4f60e03ee65ab4922a61a9f39b3e82a_1067007014440492989.mp3")
  e.reply(msg)
}
if(num == 40){
  e.reply(`桑博2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/08e9238abc9a26ffab47f121a04e3b32_3948164524152876042.mp3")
  e.reply(msg)
}
if(num == 41){
  e.reply(`佩拉1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/03bf0e5da6852a1f4ccb713e7c99223e_4274490575842827572.mp3")
  e.reply(msg)
}
if(num == 42){
  e.reply(`佩拉2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/4d8b5c3a8f8a8cf0f564d2db2c8d08ee_7596363849637209625.mp3")
  e.reply(msg)
}
if(num == 43){
  e.reply(`希露瓦1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/580cc6d982ee9a38c3c8908059d21114_5380237109991229962.mp3")
  e.reply(msg)
}
if(num == 44){
  e.reply(`希露瓦2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/7dc855032e0360b9b9483549b03a2518_1809184264427299046.mp3")
  e.reply(msg)
}
if(num == 45){
  e.reply(`娜塔莎1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/22/b6ad7f8ca32557bb152b73474998db90_5493403182669355731.mp3")
  e.reply(msg)
}
if(num == 46){
  e.reply(`娜塔莎2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/04/21/157ee94f323fb6d9d8fd93e591541c63_4441308195778722084.mp3")
  e.reply(msg)
}
if(num == 47){
  e.reply(`虎克1`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/09/14/c361a021cf1ef9431473472d2bb85cae_2311285448226333805.mp3")
  e.reply(msg)
}
if(num == 48){
  e.reply(`虎克2`);
  let msg = await segment.record("https://webstatic.mihoyo.com/upload/op-public/2022/09/14/a38c92d0af105893303b6d04c9a0565a_1092379376071080696.mp3")
  e.reply(msg)
}
  return true
  }
}
}

